package net.infamily.dao;

import net.infamily.model.Family;
import net.infamily.model.Profile;
import net.infamily.model.User;

public class ModelHelper {

	public static User createUser(int n) {
		User user = new User();
		user.setEmail(ModelHelper.createStubEmail(n));
		user.setPassword("123");
		user.setProfileId("test");
		return user;
	}
	
	public static String createStubEmail(int n) {
		return "user" + n + "@mail.com";
	}

	public static Profile createProfile(int n) {
		Profile profile = new Profile();
		profile.setProfileName("Profile" + n);
		return profile;
	}

	public static Family createFamily(int n) {
		Family family = new Family();
		family.setName("family" + n);
		return family;
	}

}
